# $Id: PKGBUILD 149360 2012-02-07 06:30:38Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=artwiz-fonts
pkgver=1.3
pkgrel=7
pkgdesc="This is set of (improved) artwiz fonts"
arch=('any')
url="http://artwizaleczapka.sourceforge.net/"
license=('GPL2')
depends=('xorg-fonts-encodings' 'xorg-font-utils' 'fontconfig')
install=artwiz-fonts.install
source=(http://downloads.sourceforge.net/sourceforge/artwizaleczapka/artwiz-aleczapka-en-${pkgver}.tar.bz2
	http://downloads.sourceforge.net/sourceforge/artwizaleczapka/artwiz-aleczapka-de-${pkgver}.tar.bz2
	http://downloads.sourceforge.net/sourceforge/artwizaleczapka/artwiz-aleczapka-se-${pkgver}.tar.bz2)
md5sums=('6c6c704f2f08f9d6308d366423dfa90e'
         'c5a9d0ad3d1b99809c77d84139949993'
         'dfc861c4f54e73eea3fd82d60be26dbc')

package() {
  cd "${srcdir}"
  install -d "${pkgdir}/usr/share/fonts/artwiz-fonts"
  for lang in en de se; do
     install -p -m 0644 artwiz-aleczapka-$lang-${pkgver}/*.pcf "${pkgdir}/usr/share/fonts/artwiz-fonts"
     cat artwiz-aleczapka-$lang-${pkgver}/fonts.alias >> "${pkgdir}/usr/share/fonts/artwiz-fonts/fonts.alias"
  done
}
